# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: François Charette <firmicus ατ gmx δοτ net>

pkgname=perl-datetime-set
pkgver=0.3900
pkgrel=4
pkgdesc="Datetime sets and set math"
arch=(any)
url="https://search.cpan.org/dist/DateTime-Set"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0' 'perl-set-infinite>=0.59' 'perl-datetime>=0.12')
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/F/FG/FGLOCK/DateTime-Set-$pkgver.tar.gz)
sha256sums=('94f41c3924aafde4ef7fa6b58e0595d4038d8ac5ffd62ba111b13c5f4dbc0946')

build() {
  cd  "$srcdir"/DateTime-Set-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "$srcdir"/DateTime-Set-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
